#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>

double gauss(double a, double b, double c, double x)
{
    double y = a*exp(-(x-b)*(x-b)/(2*c*c));
    return y;
}

int main(int argc, char *argv[])
{
    double a=1, b=0, c=3;
    double x=-10;
    while (x<10) {
        std::cout << x << ", " << gauss(a, b, c,x) << std::endl;
        x+=0.1;
    }

    return 0;
}
